package com.okchan.service.impl;

import com.okchan.dao.UserDao;
import com.okchan.domain.Book;
import com.okchan.domain.User;
import com.okchan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Ok chan
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User selectUserById(Long userId) {
        return userDao.selectUserById(userId);
    }

    @Override
    public User insertUser(User user) {
        this.userDao.insertUser(user);
        return user;
    }
}
